package com.irdstudio.efp.e4a.service.facade;

import com.irdstudio.efp.e4a.service.vo.AuthInfoVO;
import com.irdstudio.efp.e4a.service.vo.SMenuUserVO;

public interface E4AService {
	
	/**
	 * 获取token
	 * @param authInfoVO
	 * @return
	 */
	public AuthInfoVO authToken(AuthInfoVO authInfoVO);
	
	/**
	 * 验证token
	 * @param authInfoVO
	 * @return
	 */
	public AuthInfoVO valifyToken(AuthInfoVO authInfoVO);
	
	/**
	 * 登出
	 * @param authInfoVO
	 * @return
	 */
	public boolean logout(AuthInfoVO authInfoVO);
	
	/**
	 * 用户密码修改
	 * @param authInfoVO
	 * @return
	 */
	public AuthInfoVO modifyUserPassword(AuthInfoVO authInfoVO);
	
	/**
	 * 查询用户拥有的菜单和菜单控制点数据
	 * @param userCode
	 * @return
	 */
	public SMenuUserVO queryUserMenuInfo(String userCode);
	
	/**
	 * 缓存图形验证码
	 * @param clientId
	 * @param validateCode
	 * @return
	 */
	public boolean cacheValidateCode(String clientId, String validateCode);
	
	/**
	 * 校验图形验证码
	 * @param clientId
	 * @param imageCode
	 * @return
	 */
	public boolean verifyCodeImage(String clientId, String imageCode);

}
